$OpenBSD: patch-gpu_ipc_service_gpu_init_cc,v 1.1 2017/04/19 05:16:47 robert Exp $
--- gpu/ipc/service/gpu_init.cc.orig.port	Thu Mar  9 21:04:33 2017
+++ gpu/ipc/service/gpu_init.cc	Fri Mar 10 07:46:24 2017
@@ -97,7 +97,7 @@ void CollectGraphicsInfo(gpu::GPUInfo& gpu_info) {
 }
 #endif  // defined(OS_MACOSX)
 
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_BSD)
 bool CanAccessNvidiaDeviceFile() {
   bool res = true;
   base::ThreadRestrictions::AssertIOAllowed();
@@ -153,7 +153,7 @@ bool GpuInit::InitializeAndStartSandbox(const base::Co
   // Get vendor_id, device_id, driver_version from browser process through
   // commandline switches.
   GetGpuInfoFromCommandLine(gpu_info_, command_line);
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_BSD)
   if (gpu_info_.gpu.vendor_id == 0x10de &&  // NVIDIA
       gpu_info_.driver_vendor == "NVIDIA" && !CanAccessNvidiaDeviceFile())
     return false;
@@ -165,7 +165,7 @@ bool GpuInit::InitializeAndStartSandbox(const base::Co
 
   sandbox_helper_->PreSandboxStartup();
 
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
   // On Chrome OS ARM Mali, GPU driver userspace creates threads when
   // initializing a GL context, so start the sandbox early.
   if (command_line.HasSwitch(switches::kGpuSandboxStartEarly))
